package com.lxlg.lxlg_order.client;

import com.lxlg.core.utils.Result;
import com.lxlg.lxlg_order.client.param.MemberShipLevelsForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * name是项目名，contextId是client的名字
 */
@FeignClient(contextId = "membershipLevelsClient",name="orderservice")
@RequestMapping("/orderservice/infra/membership-levels")
public interface MembershipLevelsClient {
    @PostMapping("creagteVipLevels")
    public Result<String> newMemberShipLevels(@Valid @RequestBody MemberShipLevelsForm memberShipLevelsForm);

}
